package com.netease.xone.widget.richtext;

import android.view.View;


public interface IRichTextClickListener {
    /** 用户名类型 */
    public static final int RICHTEXT_NAME   = 1;
    /** 话题类型 */
    public static final int RICHTEXT_TOPIC  = 2;
    /** 链接类型 */
    public static final int RICHTEXT_LINK   = 3;    
    /** 主题类型 */
    public static final int RICHTEXT_SUBJECT = 4;
    /** 语音图片类型 */
    public static final int RICHTEXT_IMAGE_AUDIO = 5;
    
    public static final int ENABLE_RICHTEXT_TOPIC = 0x0001;
    public static final int ENABLE_RICHTEXT_LINK = 0x0002;
    public static final int ENABLE_RICHTEXT_SUBJECT = 0x0004;
    public static final int ENABLE_RICHTEXT_IMAGE_AUDIO = 0x0008;
    public static final int ENABLE_RICHTEXT_FACE = 0x0010;
    public static final int ENABLE_RICHTEXT_NAME = 0x0020;
    
    public static final int ENABLE_RICHTEXT_MASK = ENABLE_RICHTEXT_NAME|ENABLE_RICHTEXT_TOPIC|
            ENABLE_RICHTEXT_LINK|ENABLE_RICHTEXT_SUBJECT|ENABLE_RICHTEXT_IMAGE_AUDIO|ENABLE_RICHTEXT_FACE;
    
    /**
     * 
     * @param view
     * @param String
     * @param type
     * @return true,处理过, false, 未处理, 调用默认处理
     */
    public boolean onRichTextClick(View view, String richTxt, int type);
}
